package com.hst.capacity.facade.rest;

import com.hst.capacity.domain.model.entity.merchant.MerchantEntity;
import com.hst.capacity.infra.persistence.jpa.merchant.MerchantRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 *  暂无意义测试模块controller
 *
 * */
@RestController
public class MerchantController {

    @Autowired
    private MerchantRepository repository;

    @RequestMapping ("/t")
    public MerchantEntity test(){

        MerchantEntity merchant = new MerchantEntity();
        merchant.setMerchantCode("code");
        merchant.setShortName("shortname");
        merchant.setFullName("fullname");
        MerchantEntity merchant2 = (MerchantEntity) repository.findByShortName("lastname-1");

        return merchant2;
    }



}
